package com.itheima.oop.Demo03;

class Person{
    private String name;
    private int age;
    public void setAge(int age){
        this.age = age;		//请重点关注
    }
    public int getAge(){
        return age;			//请重点关注
    }
    public void setName(String name){
        name = name;		//请重点关注
    }
    public String getName(){
        return name;		//请重点关注
    }
    public void show(){
        System.out.println(age + "::"+ name);
    }
}
class Test{
    public static void main(String[] args){
        Person p = new Person();
        p.setAge(10);
        p.setName("播仔");
        p.show();
    }
}